import request from '../../utils/request';
/** 交易管理  */

//产权交易订单管理 列表
export function getCqjyOrderList (params){
    return request({
        url:'/sys/iaTransaction/findPropertyTransactionOrderPage.do',
        method: 'get',
        params: params
    });
};

//产权交易订单管理 列表删除
export function cqjyOrderListDel (params){
    return request({
        url:'/sys/user/delete.do',
        method: 'DELETE',
        params: params
    });
};


//产权交易订单管理 详情
export function getCqjyOrderDetails (params){
    return request({
        url:'/sys/iaTransaction/getPropertyTransactionOrderDetail.do',
        method: 'get',
        params: params
    });
};

//公司签章
export function getCqjyOrderDetails_addCorpAccount (params){
    return request({
        url:'/sys/esign/addCorpAccount.do',
        method: 'post',
        params: params
    });
};

//个人签章
export function getCqjyOrderDetails_addPersonAccount(params){
    return request({
        url:'/sys/esign/addPersonAccount.do',
        method: 'post',
        params: params
    });
};

//详情 签署合同
export function getCqjyOrderDetails_SignContract(params){
    return request({
        url:'/sys/iaTransaction/sginjia.do',
        method: 'post',
        params: params
    });
};



//详情 提交
export function getCqjyOrderDetails_Save(params){
    return request({
        url:'/sys/iaTransaction/submit.do',
        method: 'post',
        params: params
    });
};





//农产品订单管理 列表
export function getNcpOrderList (params){
    return request({
        url:'/sys/iaTransaction/findMaterialCorpsPage.do',
        method: 'get',
        params: params
    });
};

export function getNzOrderList (params){
    return request({
        url:'/sys/iaTransaction/findMaterialProductsPage.do',
        method: 'get',
        params: params
    });
};

//农产品订单管理 列表删除
export function ncpOrderListDel (params){
    return request({
        url:'/sys/user/delete.do',
        method: 'DELETE',
        params: params
    });
};

export function nzOrderListDel (params){
    return request({
        url:'/sys/user/delete.do',
        method: 'DELETE',
        params: params
    });
};



//农产品订单管理 详情
export function getNcpOrderDetails (params){
    return request({
        url:'/sys/placeOrder/getOrderCorpsDetail.do',
        method: 'get',
        params: params
    });
};

export function getNzOrderDetails (params){
    return request({
        url:'/sys/placeOrder/getOrderProductsDetail.do',
        method: 'get',
        params: params
    });
};

//农产品订单管理 详情签署合同
export function ncpOrderDetails_SignContract(params){
    return request({
        url:'/sys/placeOrder/sginjiaCorps.do',
        method: 'post',
        params: params
    });
};

export function nzOrderDetails_SignContract(params){
    return request({
        url:'/sys/placeOrder/sginjiaProduct.do',
        method: 'post',
        params: params
    });
};


// 农产品订单管理 详情保存
export function ncpOrderDetailsSave (params){
    return request({
        url:"/sys/placeOrder/updateOrderStatus.do",
        method: 'post',
        params: params
    });
};

export function nzOrderDetailsSave (params){
    return request({
        url:"/sys/placeOrder/updateOrderStatus.do",
        method: 'post',
        params: params
    });
};








